<template>
    <Child :title="message" demo="2" :name="name" :age="age" />
</template>
<!-- 传数据 -->
<script>
import Child from './Child.vue';
export default {
    data() {
        return {
            message: "hello",
            names: [1, 2, 3]
        }
    },
    comments: {
        Child
    }
}
</script>


</style>